-- card: 3191 from stack: in -- bmap block id: 2102 -- flags: 0000 -- background id: 2627 -- name: ----- HyperTalk script ----- on opencard put empty into card field "summary1" put empty into card field "summary2" put empty into card field "score1" put empty into card field "score2" put empty into card field "Roundnum" global loaded1,loaded2,f1,f2,first1,first2 put first1&&f1 into card field "name1" put first2&&f2 into card field "name2" if loaded1=0 or loaded2=0 then set the visible of card field "MSSG2" to true else set the visible of card field "MSSG2" to false end if end opencard -- part 3 (button) -- low flags: 00 -- high flags: A004 -- rect: left=200 top=38 right=59 bottom=311 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Fight! ----- HyperTalk script ----- on mouseUp global loaded1,loaded2 if loaded1=0 or loaded2=0 then exit mouseup global ct,winner,ko,repeet global first1,first2,f1,f2,cl1,cl2,ef1,ef2,pw1,pw2,en1,en2,df1,df2 global sp1,sp2,score1,score2,rd put "none" into ko put 0 into score1 put 0 into score2 put 0 into kn1 put 0 into kn2 put en1 into ien1 put en2 into ien2 put ef1+df2 into ef1 put ef2+df1 into ef2 put 100*ef1/(ef1+ef2) into ef1 put 100-ef1 into ef2 put 100*cl1/(cl1+cl2) into cl1 put 100-cl1 into cl2 put the random of 5 into g if g=5 then put "massive"&&sp1 into spec1 if g=4 then put "huge"&&sp1 into spec1 if g=3 then put "mammoth"&&sp1 into spec1 if g=2 then put "bone-crushing"&&sp1 into spec1 if g=1 then put "devastating"&&sp1 into spec1 put the random of 5 into g if g=1 then put "massive"&&sp2 into spec2 if g=2 then put "huge"&&sp2 into spec2 if g=3 then put "mammoth"&&sp2 into spec2 if g=4 then put "bone-crushing"&&sp2 into spec2 if g=5 then put "devastating"&&sp2 into spec2 put empty into g repeat with rd=1 to repeet play "bell" put rd into card field "Roundnum" repeat 35 times put the random of 100 into num put the random of 100 into x put the random of 20 into y put the random of 2 into z put the random of 2 into w put the random of 6 into v put en1/ien1*1000 into ss put en2/ien2*1000 into rr if num<=cl2 then put trunc((rr-ss)/2) into adjust if adjust<0 then put 0 into adjust end if if num>cl2 then put trunc((ss-rr)/2) into adjust if adjust<0 then put 0 into adjust end if put 0 into cheer if v<70-adjust then put "" into str2 put 1 into points end if if v>=70-adjust then put "solid " into str2 put 2 into points end if if v>=85-adjust then put "big " into str2 put 3 into points put 1 into cheer end if if w=1 then put "connects with a" into str if w=2 then put "lands a" into str if y<=4 then put "jab" into punch if y>4 then put "hook" into punch if y>8 then put "cross" into punch if y>12 then put "uppercut" into punch if y>16 and y<20 then put "combination" into punch put 2 into points put 1 into comb else put 0 into comb end if if y=20 then put 4 into points put 1 into cheer put empty into str2 end if if y<=16 then if z=1 then put "left"&&punch into punch if z=2 then put "right"&&punch into punch end if if num>cl2 then if y=20 then put spec1 into punch if x10 then put 10 into ct Count if ct=10 then play "bell" play "bell" play "bell" put f2&&"will not get up!" into card field "summary2" put f1&&"is the winner!" into card field "summary1" put f1 into winner put f1 into ko ZERO go to card "STATCARD" send mouseup to button "stat button" else put f2&&"gets up on a"&&ct&&"count." into card field "summary2" play "boing" end if end if else put f2&&"misses a"&&punch into string put string into card field "summary2" end if END IF if num<=cl2 then if y=20 then put spec1 into punch if x10 then put 10 into ct Count if ct=10 then play "bell" play "bell" play "bell" put f1&&"will not get up!" into card field "summary1" put f2&&"is the winner!" into card field "summary2" put f2 into winner put f2 into ko ZERO go to card "STATCARD" send mouseup to button "stat button" else put f1&&"gets up on a"&&ct&&"count." into card field "summary1" play "boing" end if end IF else put f2&&"misses a"&&punch into string put string into card field "summary2" end if END IF IF ko<>"none" THEN EXIT MOUSEUP put score1 into card field "score1" put score2 into card field "score2" end repeat play "bell" put "End of Round"&&Rd&" * Click to Continue" into msg show msg at 20,230 put 0 into ti repeat until the mouseclick put ti+1 into ti wait 1 ticks if ti=60 then exit repeat end repeat hide msg end repeat play "bell" play "bell" play "bell" if score2>score1 then put f2 into winner else put f1 into winner ENDBOUT end mouseUp -- part 4 (button) -- low flags: 00 -- high flags: 2000 -- rect: left=3 top=23 right=43 bottom=27 -- title width / last selected line: 0 -- icon id / first selected line: 11045 / 11045 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Go home ----- HyperTalk script ----- on mouseUp visual effect iris close go home end mouseUp -- part 5 (button) -- low flags: 00 -- high flags: 2000 -- rect: left=29 top=23 right=43 bottom=46 -- title width / last selected line: 0 -- icon id / first selected line: 15420 / 15420 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: prev ----- HyperTalk script ----- on mouseUp play "Cheer" go to prev card end mouseUp -- part 6 (button) -- low flags: 00 -- high flags: 2000 -- rect: left=48 top=23 right=43 bottom=65 -- title width / last selected line: 0 -- icon id / first selected line: 16560 / 16560 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: next ----- HyperTalk script ----- on mouseUp play "Cheer" go to next card end mouseUp -- part 7 (field) -- low flags: 00 -- high flags: 0004 -- rect: left=9 top=72 right=154 bottom=252 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 21 -- text size: 18 -- style flags: 8192 -- line height: 24 -- part name: summary1 -- part 9 (field) -- low flags: 00 -- high flags: 0004 -- rect: left=12 top=297 right=328 bottom=81 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 21 -- text size: 24 -- style flags: 8192 -- line height: 30 -- part name: score1 -- part 11 (field) -- low flags: 00 -- high flags: 0004 -- rect: left=235 top=263 right=294 bottom=279 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 21 -- text size: 24 -- style flags: 12288 -- line height: 30 -- part name: Roundnum -- part 12 (field) -- low flags: 00 -- high flags: 0004 -- rect: left=13 top=278 right=296 bottom=114 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 21 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: name1 -- part 15 (field) -- low flags: 00 -- high flags: 0004 -- rect: left=261 top=72 right=154 bottom=504 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 21 -- text size: 18 -- style flags: 8192 -- line height: 24 -- part name: summary2 -- part 18 (field) -- low flags: 00 -- high flags: 0004 -- rect: left=430 top=297 right=328 bottom=499 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 21 -- text size: 24 -- style flags: 8192 -- line height: 30 -- part name: score2 -- part 19 (field) -- low flags: 00 -- high flags: 0004 -- rect: left=398 top=278 right=296 bottom=499 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 65535 -- font id: 21 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: name2 -- part 20 (field) -- low flags: 00 -- high flags: 0004 -- rect: left=142 top=32 right=69 bottom=372 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 21 -- text size: 12 -- style flags: 256 -- line height: 16 -- part name: MSSG2 -- part contents for card part 12 ----- text ----- Muhammad Ali -- part contents for card part 19 ----- text ----- Trevor Berbick -- part contents for card part 20 ----- text ----- You must load Slugs before proceeding!